Skip to content

Conversation

@booxter
Copy link
Contributor

@booxter booxter commented May 30, 2025

pip-tools are very slow. What takes it 10+ minutes to resolve all
dependencies can be done in seconds with uv. This is especially
problematic when we attempt to run update-constraints against a repo
with a huge dependency tree (like instructlab/instructlab) which may
even time out in gate because of how slow pip-compile is.

uv pip compile is, largely, a drop-in replacement for pip-compile,
so the transition is very simple.

Signed-off-by: Ihar Hrachyshka [email protected]

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the conventional commits.
  • Changelog updated with breaking and/or notable changes for the next minor release.
  • Documentation has been added and/or updated, if applicable.
  • Unit tests have been added and/or updated. (If this is not applicable, please provide a justification.)
  • Integration testing has been performed, if applicable

Description of this Change

pip-tools are very slow. What takes it 10+ minutes to resolve all
dependencies can be done in seconds with `uv`. This is especially
problematic when we attempt to run `update-constraints` against a repo
with a huge dependency tree (like instructlab/instructlab) which may
even time out in gate because of how slow pip-compile is.

`uv pip compile` is, largely, a drop-in replacement for `pip-compile`,
so the transition is very simple.

Signed-off-by: Ihar Hrachyshka <[email protected]>
@booxter
Copy link
Contributor Author

booxter commented May 30, 2025

@mergify mergify bot added the one-approval label May 30, 2025
@mergify mergify bot merged commit 88641cc into instructlab:main May 30, 2025
13 checks passed
@mergify mergify bot removed the one-approval label May 30, 2025
@courtneypacheco
Copy link
Contributor

@mergify backport release-v0.2

@mergify
Copy link
Contributor

mergify bot commented May 30, 2025

backport release-v0.2

✅ Backports have been created

Details

mergify bot added a commit that referenced this pull request May 30, 2025
pip-tools are very slow. What takes it 10+ minutes to resolve all
dependencies can be done in seconds with `uv`. This is especially
problematic when we attempt to run `update-constraints` against a repo
with a huge dependency tree (like instructlab/instructlab) which may
even time out in gate because of how slow pip-compile is.

`uv pip compile` is, largely, a drop-in replacement for `pip-compile`,
so the transition is very simple.

Signed-off-by: Ihar Hrachyshka <[email protected]>











**Checklist:**

- [ ] **Commit Message Formatting**: Commit titles and messages follow guidelines in the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/#summary).
- [ ] [Changelog](https://github.com/instructlab/ci-actions/blob/main/CHANGELOG.md) updated with breaking and/or notable changes for the next minor release.
- [ ] Documentation has been added and/or updated, if applicable.
- [ ] Unit tests have been added and/or updated. (If this is not applicable, please provide a justification.)
- [ ] Integration testing has been performed, if applicable

## Description of this Change

<hr>This is an automatic backport of pull request #26 done by [Mergify](https://mergify.com).


Approved-by: courtneypacheco

Approved-by: ktdreyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants